<% if not @is_student and not "#{controller.action_name}".eql?('studentlogin') %>
<div class="breadcrumbs">
  <h1><%= page(:page_title) %></h1>
  <%= link_to 'Home', home_path %>
  <% if @site %>
    <% if @site.new_record? %>
      &gt; New Site
    <% else %>
      &gt; <%= @site.name %>
    <% end %>
  <% elsif @group %>
    <% if @group.new_record? %>
      &gt; New Group
    <% else %>
      &gt; <%= link_to @group.site.name, site_path(@group.site) %> &gt; <%= @group.name %>
    <% end %>
  <% elsif @runner %>
    <% if @runner.new_record? %>
      &gt; New Runner
    <% else %>
      &gt; <%= link_to @runner.group.site.name, site_path(@runner.group.site) %> &gt; <%= link_to @runner.group.name, group_path(@runner.group) %> &gt; <%= @runner.name %>
    <% end %>
  <% elsif @entry %>
    <% if @entry.new_record? && @runner %>
      &gt; <%= link_to @entry.runner.group.site.name, site_path(@entry.runner.group.site) %> 
      &gt; <%= link_to @entry.runner.group.name, group_path(@entry.runner.group) %> 
      &gt; <%= link_to @entry.runner.name, runner_path(@entry.runner) %>
      &gt;  New Entry
    <% elsif @entry.new_record? %>
      &gt; New Entry
    <% else %>
      &gt; <%= link_to @entry.runner.group.site.name, site_path(@entry.runner.group.site) %> 
      &gt; <%= link_to @entry.runner.group.name, group_path(@entry.runner.group) %> 
      &gt; <%= link_to @entry.runner.name, runner_path(@entry.runner) %>
      &gt; <%= @entry.date %>
    <% end %>
  <% end %>
</div>
<% end %>
